package com.example.petshopping.model;

import java.util.List;

/**
 * 用户待确认订单列表响应VO
 */
public class AppCartListResponseVO {

    /**
     * 有效的购物项数组
     */
    private List<Cart> validList;

    /**
     * 无效的购物项数组
     */
    private List<Cart> invalidList;

    public List<Cart> getValidList() {
        return validList;
    }

    public void setValidList(List<Cart> validList) {
        this.validList = validList;
    }

    public List<Cart> getInvalidList() {
        return invalidList;
    }

    public void setInvalidList(List<Cart> invalidList) {
        this.invalidList = invalidList;
    }

    /**
     * 购物项内部类
     */
    public static class Cart {

        /**
         * 购物项的编号
         */
        private Long id;

        /**
         * 商品数量
         */
        private Integer count;

        /**
         * 是否选中
         */
        private Boolean selected;

        /**
         * 商品 SPU
         */
        private AppProductSpuBaseRespVO spu;

        /**
         * 拍卖商品
         */
        private AppPetAuctionItemBaseRespVO auctionItem;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public Boolean getSelected() {
            return selected;
        }

        public void setSelected(Boolean selected) {
            this.selected = selected;
        }

        public AppProductSpuBaseRespVO getSpu() {
            return spu;
        }

        public void setSpu(AppProductSpuBaseRespVO spu) {
            this.spu = spu;
        }

        public AppPetAuctionItemBaseRespVO getAuctionItem() {
            return auctionItem;
        }

        public void setAuctionItem(AppPetAuctionItemBaseRespVO auctionItem) {
            this.auctionItem = auctionItem;
        }
    }
}
